package com.HomeWorkhsp.chapter10.homework.homework05;

/**
 * Enjoy programming!!!
 * Time: 2021/12/11 -  21:13
 */
public class A {
     final String name = "mary";

//    public void f() {
class B {
            private final String name = "jack";

            public void show() {
                System.out.println(name);
                System.out.println(A.this.name);

            }

        }

    public static void main(String[] args) {
    A a = new A();
    B b  = a.new B();
        b.show();
    }
//    public static void main(String[] args) {
//        A a = new A();
//        a.f();
//        A.B b = a.new B();


//    }

//        B b = new B();
//        b.show();
//    }


}